Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-14245] Remove policy definitions feature flag #5095

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

eliykat
Copy link
Member

@eliykat eliykat commented Nov 28, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-14245

📔 Objective

Remove the Pm13322AddPolicyDefinitions feature flag.

  • delete PolicyService.SaveAsync and private methods 🥳
  • update all callers to use the new command
  • the old unit tests for the public api didn't make sense anymore - there wasn't really anything left there for them to test - so I replaced them with integration tests

Auth: the changes to your code is just to use the new interface.

Client PR: bitwarden/clients#12172

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

LaunchDarkly flag references

❌ 1 flag removed

Name Key Aliases found Info
Add Policy Definitions for save action pm-13322-add-policy-definitions ✅ all references removed

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 79.03226% with 13 lines in your changes missing coverage. Please review.

Project coverage is 43.13%. Comparing base (ac42b81) to head (c43e150).

Files with missing lines Patch % Lines
.../AdminConsole/Models/Request/PolicyRequestModel.cs 0.00% 7 Missing ⚠️
...Api/AdminConsole/Controllers/PoliciesController.cs 37.50% 5 Missing ⚠️
.../Public/Models/Request/PolicyUpdateRequestModel.cs 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5095      +/-   ##
==========================================
- Coverage   43.14%   43.13%   -0.02%     
==========================================
  Files        1424     1424              
  Lines       65094    64903     -191     
  Branches     5964     5932      -32     
==========================================
- Hits        28085    27993      -92     
+ Misses      35756    35667      -89     
+ Partials     1253     1243      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Logo
Checkmarx One – Scan Summary & Detailscbc0abb7-c8dd-41a2-b46a-ceb46253d730

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/OrganizationController.cs: 42
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/OrganizationController.cs: 42

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed but asked for a second set of eyes because I'm new and there were moderate removals to the PolicyService @JaredSnider-Bitwarden should be taking a look as well.

Copy link
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth files look good! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants